﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;

namespace FixedStorageBank.Models
{
    public class Account : BindableBase
    {
       
        private int dallor;

        public int Dallor
        {
            get { return dallor; }
            set
            {
                SetProperty(ref dallor, value);
            }
        }



        public int Deposit(int msg)
        {

            Dallor = Dallor + msg > 200 ? Dallor : Dallor + msg;
            return Dallor;
        }
        public int WithDraw(int msg)
        {

            Dallor = Dallor - msg > -1 ? Dallor - msg : Dallor;
            return Dallor;
        }


    }
}
